home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / www / src / WWW / BUILD next >
Encoding:
Text File  |  1993-06-21  |  1.3 KB  |  42 lines

  1. #! /bin/csh
  2. #            Build all WWW Code for this platform
  3. #
  4. #    Figure out what sort of unix this is
  5. #    (NeXT machines don't have uname!)
  6.  
  7. set UNAME=NeXT
  8. if (-e /usr/bin/uname) set UNAME=`/usr/bin/uname`
  9. if (-e /bin/uname) set UNAME=`/bin/uname`
  10. if (-e /usr/apollo/bin) set UNAME=`ver sys5.3 /bin/uname`
  11. if ( $UNAME == "" ) then
  12.     if (-r /NextApps ) set UNAME=next
  13. endif
  14. #
  15. setenv UNAME $UNAME
  16. # For apollo, must use bsd mode. Also, WWW_MACH not inherited through make!
  17. if ($UNAME == "DomainOS")    setenv WWW_MACH    apollo_m68k
  18. if ($UNAME == next)    setenv WWW_MACH     next
  19. if ($UNAME == "HP-UX")    setenv WWW_MACH     snake
  20. if ($UNAME == "IRIX")    setenv WWW_MACH     sgi
  21. if ($UNAME == "SunOS")    setenv WWW_MACH        sun4
  22. if ($UNAME == "ULTRIX")    setenv WWW_MACH        decstation
  23. if ($UNAME == "AIX")    setenv WWW_MACH        rs6000
  24.  
  25. if ($WWW_MACH == "") then
  26.     echo "Please edit BUILD file to include your machine OS"
  27.     echo "and mail differences back to www-bug@info.cern.ch
  28.     exit -99
  29. endif
  30. echo "________________________________________________________________"
  31. echo "WWW build for machine type:                            " $WWW_MACH
  32.  
  33. #    Now go do build
  34.  
  35. #    We don't want SHELL set to something funny to screw up make
  36.  
  37. (cd All/Implementation; unsetenv SHELL; make)
  38. set stat = $status
  39. echo
  40. echo "WWW build for " $WWW_MACH  " done. status = " $stat
  41. exit $stat
  42.